import Axios from "axios"

export default class Admcontacts{
    static admcontacts = null

    static getInstance(){
        if(this.admcontacts == null){
            this.admcontacts = new Admcontacts()
        }
        return this.admcontacts
    }
    //高级查询
    list(admcont){
        return Axios.get(`http://localhost/admcontacts/`,{params:admcont});
    }
    //添加
    save(con){
        return Axios.post('http://localhost/admcontacts/',con)
    }
    //修改
    update(exp){
        return Axios.put("http://localhost/admcontacts/update",exp)
    }
    //删除
    remove(id){
        return Axios.delete(`http://localhost/admcontacts/del/${id}`)
    }
}
